﻿using Dqs_DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dqs_BLL
{
	public class Class_BLL
	{
		Class_DAL Class_DAL = new Class_DAL();

		public List<ClassInfo> GetClasses()
		{
			return Class_DAL.QueryClassInfo();
		}

		public bool InsertClassInfo(ClassInfo classInfo)
		{
			return Class_DAL.InsertClassInfo(classInfo);
		}

		public bool UpdateClassInfoById(ClassInfo classInfo)
		{
			return Class_DAL.UpdateClassInfoById(classInfo);
		}

		public bool DeleteClassInfoById(int classId)
		{
			return Class_DAL.DeleteClassInfoById(classId);
		}
	}
}
